Page({
    data: {
        active: 0,
        triangleDirection: 'down',
        show: false,
        addCount: 1
    },
    onChange(event) {
        wx.showToast({
            title: `切换到标签 ${event.detail.name}`,
            icon: 'none',
        });
    },
    change_direction() {
        this.setData({
            triangleDirection: this.data.triangleDirection === 'down' ? 'up' : 'down'
        })
    },
    showGrounding() {
        this.setData({ show: true })
    },
    addCount(event) {
        this.setData({ addCount: parseInt(event.detail) })
    },
    onLoad: function(options) {

    }
})